import React from 'react'
import { NavLink } from 'react-router-dom'
import '../scss/header.scss'
class Header extends React.Component {
    constructor(props) {
        super(props)
    }
    render() {
        const { header, backClick } = this.props
        console.log(this.props.backClick)
        // console.log(route)
        return (
            <header>
                <div className='header'>
                    <div className='headerBox'>
                        <div className='left' >
                            <NavLink to='/iphone'>
                                <img src={require('../image/Fill1.png').default} alt="" />
                            </NavLink>
                        </div>
                        <div>
                            {header}
                        </div>
                        <span className='right'>
                            ...
                        </span> 
                        <div className='clear'></div>
                    </div>
                </div>
            </header>
        )
    }
}
export default Header